<?php

// @formatter:off
/**
 * @file Class.php
 * @author Alejandro Dario Simi
 * @date $Date: 2014-05-04 01:33:52 +0000 (Sun, 04 May 2014) $
 *
 * $Id: Class.php 111 2014-05-04 01:33:52Z daemonraco@gmail.com $
 * $URL: http://wcomix.googlecode.com/svn/trunk/extensions/NoPrefix/Class.php $
 */
define("WC_E_NOPREFIX_VERSION", "1.0");
define("WC_E_NOPREFIX_ROOTDIR", __DIR__);

$auxInfo = array(
	"name" => "Update Unprefixed",
	"description" => "@todo",
	"version" => WC_E_NOPREFIX_VERSION,
	"url" => array(
		"title" => "wcomix:Extension:CTNoPrefix",
		"href" => "http://wiki.daemonraco.com/wiki/Wcomix:Extension:CTNoPrefix"
	),
	"author" => "Alejandro Dario Simi"
);

$wcCronScripts["CTNoPrefix"] = array_merge($auxInfo, array(
	"auto" => true,
	"enabled" => true,
	"class" => "CTNoPrefix"
	));

$wcCronProfiles[$wcCronProfile][] = "CTNoPrefix";
$wcCronProfiles["tagger"][] = "CTNoPrefix";

$wcDefaults["class-CTNoPrefix"] = array();
$wcDefaults["class-CTNoPrefix"]["groups"] = array();

// @formatter:on
//
// Loading cron.
// Warning: they only load when it is a shell execution.
if(defined("__SHELL__")) {
	require_once WC_E_NOPREFIX_ROOTDIR."/includes/CTNoPrefix.php";
}
//
// Loading special tags @{
$auxConfig = json_decode(file_get_contents(WC_E_NOPREFIX_ROOTDIR."/config.json"));
if(isset($auxConfig->prefixes)) {
	foreach($auxConfig->prefixes as $prefix) {
		$wcSpecialTags[] = $prefix->tag;
	}
}
unset($auxConfig);
// @}
